/*
 * Screen.h
 *
 *  Created on: Aug 30, 2012
 *      Author: javu
 */

#ifndef SCREEN_H_
#define SCREEN_H_

#include "SDL/SDL.h"
#include <iostream>
using namespace std;
#define SPRITE_SIZE    32

class Screen
{
private:
	const char* name; //nombre de la ventana del juego
	const char* bg; //path de la imagen de fondo
	int width; //ancho
	int height;//alto
	SDL_Rect rcMainSprite, rcBackGround;//Coordenadas del sprite y fondo
	SDL_Surface *screen, *temp, *main_sprite, *backGround; // superfice SDL de la pantalla del juego


public:
	Screen(int width, int height,const char* bg,const char* name);
	Screen();
	int startSdl(); //inicio de la SDL
	void load_sprite();
	void load_background();
	//getter`s
	int getHeight();
	int getWidth();
	SDL_Surface* getScreen();
	SDL_Surface* getMainSprite();
	SDL_Surface* getBackGround();
	SDL_Rect* getRcMainSprite();
	SDL_Rect* getRcBackGround();

	//setter's
	void setHeight(int h);
	void setWidth(int w);
	bool colision_generic();
	~Screen(void);
};

#endif /* SCREEN_H_ */
